gdk/win32/gdkwindow-win32.c: Fix gdk_win32_window_set_icon_list()
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 24 Oct 2017 08:09:17 +0000 (16:09 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 24 Oct 2017 16:46:50 +0000 (00:46 +0800)
commit006207e95e66075db6b088a4be1d25de0fb14f35
tree1de89a454eac491b4cc3d58219ae0c0fe4ec6033
parenta65730f38f30cee575c5a058f2d0706c39f419df
gdk/win32/gdkwindow-win32.c: Fix gdk_win32_window_set_icon_list()

The list of surfaces passed into the function may be NULL, so don't try
to initialize the surfaces if it is so, to avoid a crash.

Also, remove the cast to GdkPixbuf* for getting surfaces->data, as we
are already using a cairo_surface_t*.

https://bugzilla.gnome.org/show_bug?id=773299
gdk/win32/gdkwindow-win32.c